package com.ap.core.util;

/**
 * Simple generic class intended to provide a typing mechanism when retrieving and setting values on Map style
 * interfaces.
 * @param <T> The type that is associated this key.
 */
@SuppressWarnings("unused")
public class TypedKey<T> {

    private final String name;

    /**
     * Provide a name for the key
     * @param name The name of the key/
     */
    public TypedKey(String name) {
        this.name = name;
    }

    public TypedKey() {
        this.name="UNDEFINED";
    }

    @Override
    public String toString() {
        return "TypedKey{" +
                "name='" + name + '\'' +
                '}';
    }
}
